package com.tchy.cloud.entity;

import org.jeecgframework.web.system.pojo.base.TSUser;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "a_official_wh", schema = "", catalog = "")
public class AOfficialWhEntity {
    private Long articleId;
    private String consumerName;
//    private Long consumerId;
    private ACustomerEntity customerEntity;
    private TSUser editor;
    private Integer editorType;
    private String title;
    private String content;
    private TSUser publisher;
    private Date publishTime;
    private Date writeTime;
    private String intro;
    private Integer articleType;
    private Integer source;
    private String sourceAvatar;
    private String sourceUrl;
    private Integer readNum;
    private Integer commentNum;
    private Integer isCarousel;
    private String picCarousel;
    private Integer format;
    private String articleThumb;
    private String articleImg;
    private String originalImg;
    private String pic1;
    private String pic2;
    private String pic3;
    private Integer praiseNum;
    private String keyword;
    private String factorArea;
    private String factorAge;
    private String factorSex;
    private String factorIncome;
    private String factorColumn;
    private String factorSystem;
    private String factorDevice;
    private Date createTime;
    private Integer deleted;
    private Long forwardNum;
    private Long collectNum;
    private Integer status;
    private String titleText;//工作室标签
    private String factorColumnName;//要是栏目（只做展示使用）

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "article_id")
    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    @Basic
    @Column(name = "consumer_name")
    public String getConsumerName() {
        return consumerName;
    }

    public void setConsumerName(String consumerName) {
        this.consumerName = consumerName;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "consumer_id")
    public ACustomerEntity getCustomerEntity() {
        return customerEntity;
    }

    public void setCustomerEntity(ACustomerEntity customerEntity) {
        this.customerEntity = customerEntity;
    }


//    @Basic
//    @Column(name = "consumer_id")
//    public Long getConsumerId() {
//        return consumerId;
//    }
//
//    public void setConsumerId(Long consumerId) {
//        this.consumerId = consumerId;
//    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "editor")
    public TSUser getEditor() {
        return editor;
    }

    public void setEditor(TSUser editor) {
        this.editor = editor;
    }

    @Basic
    @Column(name = "editor_type")
    public Integer getEditorType() {
        return editorType;
    }

    public void setEditorType(Integer editorType) {
        this.editorType = editorType;
    }

    @Basic
    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "publisher")
    public TSUser getPublisher() {
        return publisher;
    }

    public void setPublisher(TSUser publisher) {
        this.publisher = publisher;
    }

    @Basic
    @Column(name = "publish_time")
    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    @Basic
    @Column(name = "write_time")
    public Date getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(Date writeTime) {
        this.writeTime = writeTime;
    }

    @Basic
    @Column(name = "intro")
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Basic
    @Column(name = "article_type")
    public Integer getArticleType() {
        return articleType;
    }

    public void setArticleType(Integer articleType) {
        this.articleType = articleType;
    }

    @Basic
    @Column(name = "source")
    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    @Basic
    @Column(name = "source_avatar")
    public String getSourceAvatar() {
        return sourceAvatar;
    }

    public void setSourceAvatar(String sourceAvatar) {
        this.sourceAvatar = sourceAvatar;
    }

    @Basic
    @Column(name = "source_url")
    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    @Basic
    @Column(name = "read_num")
    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    @Basic
    @Column(name = "comment_num")
    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    @Basic
    @Column(name = "is_carousel")
    public Integer getIsCarousel() {
        return isCarousel;
    }

    public void setIsCarousel(Integer isCarousel) {
        this.isCarousel = isCarousel;
    }

    @Basic
    @Column(name = "pic_carousel")
    public String getPicCarousel() {
        return picCarousel;
    }

    public void setPicCarousel(String picCarousel) {
        this.picCarousel = picCarousel;
    }

    @Basic
    @Column(name = "format")
    public Integer getFormat() {
        return format;
    }

    public void setFormat(Integer format) {
        this.format = format;
    }

    @Basic
    @Column(name = "article_thumb")
    public String getArticleThumb() {
        return articleThumb;
    }

    public void setArticleThumb(String articleThumb) {
        this.articleThumb = articleThumb;
    }

    @Basic
    @Column(name = "article_img")
    public String getArticleImg() {
        return articleImg;
    }

    public void setArticleImg(String articleImg) {
        this.articleImg = articleImg;
    }

    @Basic
    @Column(name = "original_img")
    public String getOriginalImg() {
        return originalImg;
    }

    public void setOriginalImg(String originalImg) {
        this.originalImg = originalImg;
    }

    @Basic
    @Column(name = "pic1")
    public String getPic1() {
        return pic1;
    }

    public void setPic1(String pic1) {
        this.pic1 = pic1;
    }

    @Basic
    @Column(name = "pic2")
    public String getPic2() {
        return pic2;
    }

    public void setPic2(String pic2) {
        this.pic2 = pic2;
    }

    @Basic
    @Column(name = "pic3")
    public String getPic3() {
        return pic3;
    }

    public void setPic3(String pic3) {
        this.pic3 = pic3;
    }

    @Basic
    @Column(name = "praise_num")
    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }

    @Basic
    @Column(name = "keyword")
    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Basic
    @Column(name = "factor_area")
    public String getFactorArea() {
        return factorArea;
    }

    public void setFactorArea(String factorArea) {
        this.factorArea = factorArea;
    }

    @Basic
    @Column(name = "factor_age")
    public String getFactorAge() {
        return factorAge;
    }

    public void setFactorAge(String factorAge) {
        this.factorAge = factorAge;
    }

    @Basic
    @Column(name = "factor_sex")
    public String getFactorSex() {
        return factorSex;
    }

    public void setFactorSex(String factorSex) {
        this.factorSex = factorSex;
    }

    @Basic
    @Column(name = "factor_income")
    public String getFactorIncome() {
        return factorIncome;
    }

    public void setFactorIncome(String factorIncome) {
        this.factorIncome = factorIncome;
    }

    @Basic
    @Column(name = "factor_column")
    public String getFactorColumn() {
        return factorColumn;
    }

    public void setFactorColumn(String factorColumn) {
        this.factorColumn = factorColumn;
    }

    @Basic
    @Column(name = "factor_system")
    public String getFactorSystem() {
        return factorSystem;
    }

    public void setFactorSystem(String factorSystem) {
        this.factorSystem = factorSystem;
    }

    @Basic
    @Column(name = "factor_device")
    public String getFactorDevice() {
        return factorDevice;
    }

    public void setFactorDevice(String factorDevice) {
        this.factorDevice = factorDevice;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "deleted")
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Basic
    @Column(name = "forward_num")
    public Long getForwardNum() {
        return forwardNum;
    }

    public void setForwardNum(Long forwardNum) {
        this.forwardNum = forwardNum;
    }

    @Basic
    @Column(name = "collect_num")
    public Long getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Long collectNum) {
        this.collectNum = collectNum;
    }


    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Transient
    public String getTitleText() {
        return titleText;
    }

    public void setTitleText(String titleText) {
        this.titleText = titleText;
    }

    @Transient
    public String getFactorColumnName() {
        return factorColumnName;
    }

    public void setFactorColumnName(String factorColumnName) {
        this.factorColumnName = factorColumnName;
    }
}
